package com.amoyt.project.domain.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

/**
 * <p>
 * 脱贫计划表
 * </p>
 *
 * @author AmoyT
 * @since 2025-08-21
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Schema(description = "脱贫计划表")
@TableName("poverty_alleviation_plan")
public class AlleviationPlan implements Serializable {

    private static final long serialVersionUID = 1L;

    @Schema(description = "计划唯一标识")
    @TableId(value = "plan_id", type = IdType.INPUT)
    private String planId;

    @Schema(description = "关联农户编号")
    private String householdId;

    @Schema(description = "农户户主姓名")
    private String householdName;

    @Schema(description = "贫困类型（因病/因残/因学等）")
    private String povertyType;

    @Schema(description = "计划开始时间")
    private LocalDateTime planStartDate;

    @Schema(description = "计划脱贫时间（目标）")
    private LocalDateTime planEndDate;

    @Schema(description = "年度收入目标（元）")
    private Long annualIncomeTarget;

    @Schema(description = "核心任务（分阶段）")
    private String keyTasks;

    @Schema(description = "责任单位")
    private String responsibleUnit;

    @Schema(description = "责任人")
    private String responsiblePerson;

    @Schema(description = "进度（进行中/已完成/延期）")
    private String progress;

    @Schema(description = "备注")
    private String remark;

    @Schema(description = "创建时间")
    private LocalDateTime createTime;

    @Schema(description = "创建人(没想好用字符串还是用户名)")
    private String createBy;

    @Schema(description = "更新时间")
    private LocalDateTime updateTime;

    @Schema(description = "更新人")
    private String updateBy;

    @Schema(description = "逻辑删除字段（0-未删除，1-已删除）")
    private Integer deleted;
}
